Repository navigation
ci: run the sweep's second version on its own stage, and Compose examples on the requested version - #829
Merged
Conversation
Redeploying a stage right after removing it recreates its IAM roles under the same names, and Lambda can reject a role IAM has not finished propagating. The second version now deploys to a new stage, and both stages are removed at the end of the job.
The CLI picks the version for a Compose run from serverless-compose.yml; a service's frameworkVersion is only a range check. The runner now writes the version into serverless-compose.yml as well, so a canary run of a Compose example uses the canary.
Two versions at 15 minutes for the run and 15 for the remove, plus up to 20 minutes for each stage's final remove: the job limit is now 100 minutes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two fixes to the nightly
sweeplive tests, and a time limit that fits them.serverless-compose.yml; a service'sframeworkVersionis a range check.scripts/test-example.mjswrote the version into the services only, so the canary run ofcompose-multiframeworkran the latest release. The runner now also writes it intoserverless-compose.ymlin the copy it deploys and removes.Test plan
npm test: 311 tests pass, including new tests for the second stage and its remove step, the version inserverless-compose.ymlfor a canary or numbered run (deploy and--remove-only), and the file left unchanged withlatest. The Compose test fails without the runner change.node scripts/test-example.mjs compose-multiframework --framework-version canaryagainst AWS (eu-west-1): the CLI reports the canary build, the three services deploy, the check passes and all three are removed. The same command withlatestpasses on 4.46.0, andaws-nodepasses on the same canary.sweeprun shows two stages per example and the canary version forcompose-multiframework. A manual dispatch tests one version only.Generated by Claude Code